import 'dart:convert';

LinkRequest linkRequestFromJson(String str) =>
    LinkRequest.fromJson(json.decode(str));

String linkRequestToJson(LinkRequest data) => json.encode(data.toJson());

class LinkRequest {
  String userName;
  String sessionType;
  String password;
  String userId;

  LinkRequest({
    required this.userName,
    required this.sessionType,
    required this.password,
    required this.userId,
  });

  factory LinkRequest.fromJson(Map<String, dynamic> json) => LinkRequest(
        userName: json["userName"],
        sessionType: json["sessionType"],
        password: json["password"],
        userId: json["userId"],
      );

  Map<String, dynamic> toJson() => {
        "userName": userName,
        "sessionType": sessionType,
        "password": password,
        "userId": userId,
      };
}
